<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="zh">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=11"/>
<meta name="generator" content="Doxygen 1.9.8"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>My Project: DrTemplateBase.h 源文件</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr id="projectrow">
  <td id="projectalign">
   <div id="projectname">My Project
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- 制作者 Doxygen 1.9.8 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
var searchBox = new SearchBox("searchBox", "search/",'.html');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(function() {
  initMenu('',true,false,'search.php','搜索');
  $(document).ready(function() { init_search(); });
});
/* @license-end */
</script>
<div id="main-nav"></div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:d3d9a9a6595521f9666a5e94cc830dab83b65699&amp;dn=expat.txt MIT */
$(document).ready(function() { init_codefold(0); });
/* @license-end */
</script>
</div><!-- top -->
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<div id="MSearchResults">
<div class="SRPage">
<div id="SRIndex">
<div id="SRResults"></div>
<div class="SRStatus" id="Loading">载入中...</div>
<div class="SRStatus" id="Searching">搜索中...</div>
<div class="SRStatus" id="NoMatches">未找到</div>
</div>
</div>
</div>
</div>

<div class="header">
  <div class="headertitle"><div class="title">DrTemplateBase.h</div></div>
</div><!--header-->
<div class="contents">
<a href="DrTemplateBase_8h.html">浏览该文件的文档.</a><div class="fragment"><div class="line"><a id="l00001" name="l00001"></a><span class="lineno">    1</span> </div>
<div class="line"><a id="l00015" name="l00015"></a><span class="lineno">   15</span><span class="preprocessor">#pragma once</span></div>
<div class="line"><a id="l00016" name="l00016"></a><span class="lineno">   16</span> </div>
<div class="line"><a id="l00017" name="l00017"></a><span class="lineno">   17</span><span class="preprocessor">#include &lt;<a class="code" href="exports_8h.html">drogon/exports.h</a>&gt;</span></div>
<div class="line"><a id="l00018" name="l00018"></a><span class="lineno">   18</span><span class="preprocessor">#include &lt;<a class="code" href="DrObject_8h.html">drogon/DrObject.h</a>&gt;</span></div>
<div class="line"><a id="l00019" name="l00019"></a><span class="lineno">   19</span><span class="preprocessor">#include &lt;<a class="code" href="HttpViewData_8h.html">drogon/HttpViewData.h</a>&gt;</span></div>
<div class="line"><a id="l00020" name="l00020"></a><span class="lineno">   20</span><span class="preprocessor">#include &lt;memory&gt;</span></div>
<div class="line"><a id="l00021" name="l00021"></a><span class="lineno">   21</span><span class="preprocessor">#include &lt;string&gt;</span></div>
<div class="line"><a id="l00022" name="l00022"></a><span class="lineno">   22</span> </div>
<div class="line"><a id="l00023" name="l00023"></a><span class="lineno">   23</span><span class="keyword">namespace </span><a class="code hl_namespace" href="namespacedrogon.html">drogon</a></div>
<div class="line"><a id="l00024" name="l00024"></a><span class="lineno">   24</span>{</div>
<div class="line"><a id="l00025" name="l00025"></a><span class="lineno"><a class="line" href="namespacedrogon.html#a82989d7ab651356c1bfab45376492c31">   25</a></span><span class="keyword">using </span><a class="code hl_class" href="classdrogon_1_1HttpViewData.html">DrTemplateData</a> = <a class="code hl_class" href="classdrogon_1_1HttpViewData.html">HttpViewData</a>;</div>
<div class="line"><a id="l00026" name="l00026"></a><span class="lineno">   26</span> </div>
<div class="line"><a id="l00028" name="l00028"></a><span class="lineno">   28</span> </div>
<div class="foldopen" id="foldopen00033" data-start="{" data-end="};">
<div class="line"><a id="l00033" name="l00033"></a><span class="lineno"><a class="line" href="classdrogon_1_1DrTemplateBase.html">   33</a></span><span class="keyword">class </span><a class="code hl_define" href="exports_8h.html#a00d0a001c2dd03906272e00b0598182e">DROGON_EXPORT</a> <a class="code hl_class" href="classdrogon_1_1DrTemplateBase.html">DrTemplateBase</a> : <span class="keyword">public</span> <span class="keyword">virtual</span> <a class="code hl_class" href="classdrogon_1_1DrObjectBase.html">DrObjectBase</a></div>
<div class="line"><a id="l00034" name="l00034"></a><span class="lineno">   34</span>{</div>
<div class="line"><a id="l00035" name="l00035"></a><span class="lineno">   35</span>  <span class="keyword">public</span>:</div>
<div class="line"><a id="l00037" name="l00037"></a><span class="lineno">   37</span> </div>
<div class="line"><a id="l00043" name="l00043"></a><span class="lineno"><a class="line" href="classdrogon_1_1DrTemplateBase.html#abda5019c5f6e95674838ad81f29622b7">   43</a></span>    <span class="keyword">static</span> std::shared_ptr&lt;DrTemplateBase&gt; <a class="code hl_function" href="classdrogon_1_1DrTemplateBase.html#abda5019c5f6e95674838ad81f29622b7">newTemplate</a>(</div>
<div class="line"><a id="l00044" name="l00044"></a><span class="lineno">   44</span>        <span class="keyword">const</span> std::string &amp;templateName);</div>
<div class="line"><a id="l00045" name="l00045"></a><span class="lineno">   45</span> </div>
<div class="line"><a id="l00047" name="l00047"></a><span class="lineno">   47</span> </div>
<div class="line"><a id="l00051" name="l00051"></a><span class="lineno"><a class="line" href="classdrogon_1_1DrTemplateBase.html#a2f1140e2c3db012d806bf1e9cefe7847">   51</a></span>    <span class="keyword">virtual</span> std::string <a class="code hl_function" href="classdrogon_1_1DrTemplateBase.html#a2f1140e2c3db012d806bf1e9cefe7847">genText</a>(</div>
<div class="line"><a id="l00052" name="l00052"></a><span class="lineno">   52</span>        <span class="keyword">const</span> <a class="code hl_class" href="classdrogon_1_1HttpViewData.html">DrTemplateData</a> &amp;data = <a class="code hl_class" href="classdrogon_1_1HttpViewData.html">DrTemplateData</a>()) = 0;</div>
<div class="line"><a id="l00053" name="l00053"></a><span class="lineno">   53</span> </div>
<div class="line"><a id="l00054" name="l00054"></a><span class="lineno"><a class="line" href="classdrogon_1_1DrTemplateBase.html#ad9b13bf52e52ca073f85bde83d739081">   54</a></span>    <span class="keyword">virtual</span> <a class="code hl_function" href="classdrogon_1_1DrTemplateBase.html#ad9b13bf52e52ca073f85bde83d739081">~DrTemplateBase</a>(){};</div>
<div class="line"><a id="l00055" name="l00055"></a><span class="lineno"><a class="line" href="classdrogon_1_1DrTemplateBase.html#ad8a895f0173b360aa09d77795001bcad">   55</a></span>    <a class="code hl_function" href="classdrogon_1_1DrTemplateBase.html#ad8a895f0173b360aa09d77795001bcad">DrTemplateBase</a>(){};</div>
<div class="line"><a id="l00056" name="l00056"></a><span class="lineno">   56</span>};</div>
</div>
<div class="line"><a id="l00057" name="l00057"></a><span class="lineno">   57</span> </div>
<div class="line"><a id="l00058" name="l00058"></a><span class="lineno">   58</span>}  <span class="comment">// namespace drogon</span></div>
<div class="ttc" id="aDrObject_8h_html"><div class="ttname"><a href="DrObject_8h.html">DrObject.h</a></div></div>
<div class="ttc" id="aHttpViewData_8h_html"><div class="ttname"><a href="HttpViewData_8h.html">HttpViewData.h</a></div></div>
<div class="ttc" id="aclassdrogon_1_1DrObjectBase_html"><div class="ttname"><a href="classdrogon_1_1DrObjectBase.html">drogon::DrObjectBase</a></div><div class="ttdoc">The base class for all drogon reflection classes.</div><div class="ttdef"><b>Definition</b> DrObject.h:34</div></div>
<div class="ttc" id="aclassdrogon_1_1DrTemplateBase_html"><div class="ttname"><a href="classdrogon_1_1DrTemplateBase.html">drogon::DrTemplateBase</a></div><div class="ttdoc">The templating engine class</div><div class="ttdef"><b>Definition</b> DrTemplateBase.h:34</div></div>
<div class="ttc" id="aclassdrogon_1_1DrTemplateBase_html_a2f1140e2c3db012d806bf1e9cefe7847"><div class="ttname"><a href="classdrogon_1_1DrTemplateBase.html#a2f1140e2c3db012d806bf1e9cefe7847">drogon::DrTemplateBase::genText</a></div><div class="ttdeci">virtual std::string genText(const DrTemplateData &amp;data=DrTemplateData())=0</div><div class="ttdoc">Generate the text string</div></div>
<div class="ttc" id="aclassdrogon_1_1DrTemplateBase_html_abda5019c5f6e95674838ad81f29622b7"><div class="ttname"><a href="classdrogon_1_1DrTemplateBase.html#abda5019c5f6e95674838ad81f29622b7">drogon::DrTemplateBase::newTemplate</a></div><div class="ttdeci">static std::shared_ptr&lt; DrTemplateBase &gt; newTemplate(const std::string &amp;templateName)</div><div class="ttdoc">Create an object of the implementation class</div></div>
<div class="ttc" id="aclassdrogon_1_1DrTemplateBase_html_ad8a895f0173b360aa09d77795001bcad"><div class="ttname"><a href="classdrogon_1_1DrTemplateBase.html#ad8a895f0173b360aa09d77795001bcad">drogon::DrTemplateBase::DrTemplateBase</a></div><div class="ttdeci">DrTemplateBase()</div><div class="ttdef"><b>Definition</b> DrTemplateBase.h:55</div></div>
<div class="ttc" id="aclassdrogon_1_1DrTemplateBase_html_ad9b13bf52e52ca073f85bde83d739081"><div class="ttname"><a href="classdrogon_1_1DrTemplateBase.html#ad9b13bf52e52ca073f85bde83d739081">drogon::DrTemplateBase::~DrTemplateBase</a></div><div class="ttdeci">virtual ~DrTemplateBase()</div><div class="ttdef"><b>Definition</b> DrTemplateBase.h:54</div></div>
<div class="ttc" id="aclassdrogon_1_1HttpViewData_html"><div class="ttname"><a href="classdrogon_1_1HttpViewData.html">drogon::HttpViewData</a></div><div class="ttdoc">This class represents the data set displayed in views.</div><div class="ttdef"><b>Definition</b> HttpViewData.h:33</div></div>
<div class="ttc" id="aexports_8h_html"><div class="ttname"><a href="exports_8h.html">exports.h</a></div></div>
<div class="ttc" id="aexports_8h_html_a00d0a001c2dd03906272e00b0598182e"><div class="ttname"><a href="exports_8h.html#a00d0a001c2dd03906272e00b0598182e">DROGON_EXPORT</a></div><div class="ttdeci">#define DROGON_EXPORT</div><div class="ttdef"><b>Definition</b> exports.h:15</div></div>
<div class="ttc" id="anamespacedrogon_html"><div class="ttname"><a href="namespacedrogon.html">drogon</a></div><div class="ttdoc">Drogon Test is a minimal effort test framework developed because the major C++ test frameworks doesn'...</div><div class="ttdef"><b>Definition</b> Attribute.h:23</div></div>
</div><!-- fragment --></div><!-- contents -->
<!-- start footer part -->
<hr class="footer"/><address class="footer"><small>
制作者&#160;<a href="https://www.doxygen.org/index.html"><img class="footer" src="doxygen.svg" width="104" height="31" alt="doxygen"/></a> 1.9.8
</small></address>
</body>
</html>
